﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Domain.Module.Roles;
using Domain.Module.Entities;
using Framework.DCI;

namespace Domain.Roles
{
    public class MblogPublisher : Role<User>, IMblogPublisher
    {
        #region IMblogPublisher Members

        public MblogPublisher(User actor) : base(actor)
        {

        }

        public void PublishMblog(Infrastructure.DataObject.MBlogObject mblogObject)
        {
            var mblog = MBlog.Create(mblogObject);
            _actor.MBlogs.Add(mblog);
        }

        #endregion
    }
}
